﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MyMaster.master" AutoEventWireup="true" CodeFile="DangKy.aspx.cs" Inherits="DangKy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="4" cellspacing="0" style="width: 97%; text-align: left; margin-left:20px; margin-top:15px;">
            <tr>
                <td colspan="4" style="font-size:x-large;">
                    <asp:Label ID="lblTieuDe" runat="server" Font-Size="16"/>
                </td>
            </tr>
            <tr>
                <td width="15%">Họ tên</td>
                <td width="65%">
                    <asp:TextBox ID="txtten" runat="server" Width="50%"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtten" Display="Dynamic" ErrorMessage="(*)" 
                        ValidationGroup="reg"></asp:RequiredFieldValidator>
                </td>
            <tr>
                <td>Ngày sinh</td>
                <td>
                    <asp:TextBox ID="txtngaysinh" runat="server" Width="50%"></asp:TextBox>
<%--                    <a id="Lnk_ngaysinh" class="icsl" href="javascript:;">&nbsp;</a>
                    <script type="text/javascript">
                        Calendar.setup({
                            inputField: "<%= txtngaysinh.ClientID %>",
                            dateFormat: "%d/%m/%Y",
                            trigger: "Lnk_ngaysinh",
                            titleFormat: "%B, %Y",
                            onSelect: function () { this.hide() }
                        });</script>--%>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" 
                        runat="server" ControlToValidate="txtngaysinh" Display="Dynamic" 
                        ErrorMessage="(*)" ValidationGroup="reg">
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            </tr>
            <tr>
                <td>Số điện thoại</td>
                <td>
                    <asp:TextBox ID="txtsodienthoai" runat="server" Width="50%"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtsodienthoai" 
                        ErrorMessage="bạn phải nhập dạng số trong khoảng [0-9]" 
                        ValidationExpression="([0-9])*" ValidationGroup="reg">
                    </asp:RegularExpressionValidator>
                </td>
            <tr>
                <td>Email</td>
                <td>
                    <asp:TextBox ID="txtemail" runat="server" Width="50%"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                        ControlToValidate="txtemail" Display="Dynamic" ErrorMessage="(*)" 
                        ToolTip="Vui lòng nhập email" ValidationGroup="reg"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtemail" ErrorMessage="(*)" 
                        ToolTip="Vui lòng nhập đúng thông tin email" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ValidationGroup="reg">
                    </asp:RegularExpressionValidator>
                </td>
            </tr>
            </tr>
            <tr>
                <td>Địa chỉ</td>
                <td>
                    <asp:TextBox ID="txtdiachi" runat="server" Width="50%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Tên đăng nhập</td>
                <td>
                    <asp:TextBox ID="txttendangnhap" runat="server" Width="50%"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" 
                        runat="server" ControlToValidate="txttendangnhap" Display="Dynamic" 
                        ErrorMessage="(*)" ValidationGroup="reg">
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Mât khẩu</td>
                <td>
                    <asp:TextBox ID="txtmatkhau" runat="server" Width="50%" TextMode="Password" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rqmatkhau" 
                        runat="server" ControlToValidate="txtmatkhau" Display="Dynamic" 
                        ErrorMessage="(*)" ValidationGroup="reg">
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Nhập lại mật khẩu</td>
                <td>
                    <asp:TextBox ID="txtnhaplaimatkhau" runat="server" Width="50%" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rqnhaplaimatkhau" 
                        runat="server" ControlToValidate="txtnhaplaimatkhau" Display="Dynamic" 
                        ErrorMessage="(*)" ValidationGroup="reg"></asp:RequiredFieldValidator><asp:CompareValidator 
                        ID="CompareValidator1" runat="server" ControlToCompare="txtmatkhau" 
                        ControlToValidate="txtnhaplaimatkhau" ErrorMessage="(*)" 
                        ToolTip="Vui lòng nhập lại đúng thông tin mật khẩu" ValidationGroup="reg">
                    </asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td><asp:Label ID="lblmatkhauhientai" runat="server" Text="Mật khẩu hiện tại" Font-Size="13" Visible="false" /></td>
                <td>
                    <asp:TextBox ID="txtmatkhauhientai" runat="server" Width="50%" TextMode="Password" Visible="false" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Button ID="btnthem" runat="server" CssClass="ica" Text="Đăng ký" 
                        ValidationGroup="reg" onclick="btnthem_Click" />&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnboqua" runat="server" CssClass="icc" Text="Bỏ qua" />
                </td>
            </tr>
            <tr>
                <td colspan="4" class="header">
                    &nbsp;</td>
            </tr>
        </table>
</asp:Content>

